<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>问题反馈</title>
</head>
<link href="../../css/bootstrap.min.css" rel="stylesheet">
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

<body>
<form style="margin-top: 150px">
<span>意见信息：</span>
    <table id="prole" class="table table-bordered table-hover"  style="margin-top: 20px" 语文>
        <
        <tr>
            <td>id</td>
            <td>用户</td>
            <td>描述</td>
            <td>照片一</td>
            <td>照片二</td>
            <td>照片三</td>
            <td>照片四</td>
            <td>创建时间</td>
            <td>状态</td>
            <td>操作</td>
        </tr>
        <tbody id="table">

        </tbody>
    </table>
    <ul class="pagination pagination-lg" style="margin-left: 600px">
        <li><a href="#">&laquo;</a></li>
        <li><a href="#">1</a></li>
        <li><a href="#">2</a></li>
        <li><a href="#">3</a></li>
        <li><a href="#">4</a></li>
        <li><a href="#">5</a></li>
        <li><a href="#">&raquo;</a></li>
    </ul>
</form>
<!--修改-->
<form role="form" action="">
    <!-- 模态框（Modal）-->
    <div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"style="margin-top: 200px">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;
                    </button>
                    <h4 class="modal-title" id="myModalLabel1">
                        修改
                    </h4>
                </div>
                <div class="modal-body">

                    <div class="form-group">
                        <label >问题类型</label>
                        <input type="text" class="form-control" placeholder="问题类型" name="">
                    </div>
                    <div class="form-group">
                        <label >问题反馈时间</label>
                        <input type="text" class="form-control" placeholder="问题反馈时间" name="">
                    </div>
                    <div class="form-group">
                        <label>问题状态</label>
                        <input type="date"  class="form-control" placeholder="时间" name="问题状态">
                    </div>


                </div>
                <div class="modal-footer">

                    <button type="button" class="btn btn-primary">
                        修改
                    </button>
                </div>
            </div>
        </div>
    </div>
</form>

</body>
<script src="../dist/js/include.js"></script>
<script>
    $.ajax({
        url : "/user/problem/problemFindAll",
        type : 'GET',
        dataType : 'json',
        success : function(data) {
            $.each(data.data,function (index,val) {
                var state;
                if(val.state==1) {
                    state = '显示';
                }else if(val.state==2){
                    state='不显示'
                }
                var html = '<tr>'+
                    '<td>'+val.id+'</td>'+
                    '<td>'+val.userid+'</td>'+
                    '<td>'+val.depict+'</td>'+
                    '<td>'+val.imga+'</td>'+
                    '<td>'+val.imgb+'</td>'+
                    '<td>'+val.imgc+'</td>'+
                    '<td>'+val.imgd+'</td>'+
                    '<td>'+val.createdate+'</td>'+
                    '<td>'+state+'</td>'+
                    '</tr>';

                $("#table").append(html);
            })
        },

    });

</script>
</html>